﻿using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Provider;

namespace Flickr.Owin.Security
{
    public class FlickrApplyRedirectContext : BaseContext<FlickrAuthenticationOptions>
    {

        /// <summary>
        /// Gets the URI used for the redirect operation.
        /// 
        /// </summary>
        public string RedirectUri { get; private set; }

        /// <summary>
        /// Gets the authenticaiton properties of the challenge
        /// 
        /// </summary>
        public AuthenticationProperties Properties { get; private set; }

        public FlickrApplyRedirectContext(IOwinContext context, FlickrAuthenticationOptions options, AuthenticationProperties properties, string redirectUri)
            : base(context, options)
        {
            this.RedirectUri = redirectUri;
            this.Properties = properties;
        }
    }
}